/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package boundaries;

import java.io.Serializable;
import javax.annotation.ManagedBean;
import javax.enterprise.context.RequestScoped;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.SessionScoped;
import javax.inject.Named;


/**
 *
 * @author dami
 */
@ManagedBean
@SessionScoped
public class SearchBean implements Serializable{

    private String searchText;

    
    
    public String search() {
        return "searching?faces-redirect=true&text="+searchText;
    }
    
    /**
     * Creates a new instance of SearchBean
     */
    public SearchBean() {
    }

    public String getSearchText() {
        return searchText;
    }

    public void setSearchText(String searchText) {
        this.searchText = searchText;
    }

}
